#include "tcpsocket.h"

#include <QDebug>

CTcpSocket::CTcpSocket(QObject *p)
		: QTcpSocket(p)
{

	connect(this, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(onError(QAbstractSocket::SocketError)), Qt::DirectConnection);
}


void CTcpSocket::onError(QAbstractSocket::SocketError e)
{
	qDebug() << "Socket error:" << errorString() << "(" << e << ")";
}
